package MultipleFactoryMode;

import java.util.ArrayList;
import java.util.List;

public class MultipleFactoryMode {
	private String name;
	private static List<MultipleFactoryMode> instance = new ArrayList<MultipleFactoryMode>();

	private MultipleFactoryMode(){
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static List<MultipleFactoryMode> getInstance(){
		MultipleFactoryMode multipleFactoryMode1 = new MultipleFactoryMode();
		multipleFactoryMode1.setName("朱德");
		MultipleFactoryMode multipleFactoryMode2 = new MultipleFactoryMode();
		multipleFactoryMode2.setName("彭德怀");
		MultipleFactoryMode multipleFactoryMode3 = new MultipleFactoryMode();
		multipleFactoryMode3.setName("林彪");
		MultipleFactoryMode multipleFactoryMode4 = new MultipleFactoryMode();
		multipleFactoryMode4.setName("刘伯承");
		MultipleFactoryMode multipleFactoryMode5 = new MultipleFactoryMode();
		multipleFactoryMode5.setName("贺龙");
		MultipleFactoryMode multipleFactoryMode6 = new MultipleFactoryMode();
		multipleFactoryMode6.setName("陈毅");
		MultipleFactoryMode multipleFactoryMode7 = new MultipleFactoryMode();
		multipleFactoryMode7.setName("罗荣桓");
		MultipleFactoryMode multipleFactoryMode8 = new MultipleFactoryMode();
		multipleFactoryMode8.setName("徐向前");
		MultipleFactoryMode multipleFactoryMode9 = new MultipleFactoryMode();
		multipleFactoryMode9.setName("聂荣臻");
		MultipleFactoryMode multipleFactoryMode10 = new MultipleFactoryMode();
		multipleFactoryMode10.setName("叶剑英");
		instance.add(multipleFactoryMode1);
		instance.add(multipleFactoryMode2);
		instance.add(multipleFactoryMode3);
		instance.add(multipleFactoryMode4);
		instance.add(multipleFactoryMode5);
		instance.add(multipleFactoryMode6);
		instance.add(multipleFactoryMode7);
		instance.add(multipleFactoryMode8);
		instance.add(multipleFactoryMode9);
		instance.add(multipleFactoryMode10);
		return instance;
	}

}
